app.controller("mineController",["$scope","$http",function($scope,$http){
    var loginOut=document.querySelector('.m-loginOut');

    var login=document.querySelector('#i-login>a');
    var header=document.querySelector('#i-header');
    var placeHolder=document.querySelector('#i-placeHolder');


        loginOut.addEventListener('touchend',function(){

                  window.location.hash='#/login';

                  setCookie('username','',-1);
                  setCookie('password','',-1);

                   login.innerHTML='注册 | 登录';
                   header.style.width=100+'%';
                   header.style.height=0.9+'rem';
                   header.style.display='flex';
                   header.style.justifyContent="space-between";
                   placeHolder.style.height=0.9+'rem';
                   $('#l-main ul li').html('请点击登录');
        })
}])
